package com.ruoyi.resShop.mapper;

import com.ruoyi.resShop.domain.NewResShop;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ResShopMapper {

    public List<NewResShop> selectShopByIf(NewResShop re);

    public List<NewResShop> selectShopByWhen(NewResShop re);

    //现在想根据店铺id查询店铺
    @Select("select*from res_shop where id = #{id}")
        public NewResShop getShopById(Long id);

    public int insertNewResShop(NewResShop newResShop);
    public int updateNewResShop(NewResShop newResShop);
    public int deleteNewResShop(int id);

    //查询所有店铺
    public List<NewResShop> getShopList();
}
